package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/12/17.
 * Des:
 */
@Entity
@Table(name = "yd_ancient_match_rd_t", schema = "jshoperxms", catalog = "")
public class YdAncientMatchRdT {
    private String id;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String homewxopenid;
    private String awaywxopenid;
    private String homenick;
    private String awaynick;
    private long matchtime;
    private String matchtitle;
    private String matchitemscontent;
    private int homescore;
    private int awayscore;
    private int homerightcount;
    private int homewrongcount;
    private int awayrightcount;
    private int awaywrongcount;
    private int whowin;
    private String matchstatus;
    private String matchmodel;
    private String matchid;
    private int homematchusedtime;
    private int awaymatchusedtime;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "HOMEWXOPENID", nullable = false, length = 45)
    public String getHomewxopenid() {
        return homewxopenid;
    }

    public void setHomewxopenid(String homewxopenid) {
        this.homewxopenid = homewxopenid;
    }

    @Basic
    @Column(name = "AWAYWXOPENID", nullable = false, length = 45)
    public String getAwaywxopenid() {
        return awaywxopenid;
    }

    public void setAwaywxopenid(String awaywxopenid) {
        this.awaywxopenid = awaywxopenid;
    }

    @Basic
    @Column(name = "HOMENICK", nullable = false, length = 100)
    public String getHomenick() {
        return homenick;
    }

    public void setHomenick(String homenick) {
        this.homenick = homenick;
    }

    @Basic
    @Column(name = "AWAYNICK", nullable = false, length = 100)
    public String getAwaynick() {
        return awaynick;
    }

    public void setAwaynick(String awaynick) {
        this.awaynick = awaynick;
    }

    @Basic
    @Column(name = "MATCHTIME", nullable = false)
    public long getMatchtime() {
        return matchtime;
    }

    public void setMatchtime(long matchtime) {
        this.matchtime = matchtime;
    }

    @Basic
    @Column(name = "MATCHTITLE", nullable = false, length = 100)
    public String getMatchtitle() {
        return matchtitle;
    }

    public void setMatchtitle(String matchtitle) {
        this.matchtitle = matchtitle;
    }

    @Basic
    @Column(name = "MATCHITEMSCONTENT", nullable = false, length = -1)
    public String getMatchitemscontent() {
        return matchitemscontent;
    }

    public void setMatchitemscontent(String matchitemscontent) {
        this.matchitemscontent = matchitemscontent;
    }

    @Basic
    @Column(name = "HOMESCORE", nullable = false)
    public int getHomescore() {
        return homescore;
    }

    public void setHomescore(int homescore) {
        this.homescore = homescore;
    }

    @Basic
    @Column(name = "AWAYSCORE", nullable = false)
    public int getAwayscore() {
        return awayscore;
    }

    public void setAwayscore(int awayscore) {
        this.awayscore = awayscore;
    }

    @Basic
    @Column(name = "HOMERIGHTCOUNT", nullable = false)
    public int getHomerightcount() {
        return homerightcount;
    }

    public void setHomerightcount(int homerightcount) {
        this.homerightcount = homerightcount;
    }

    @Basic
    @Column(name = "HOMEWRONGCOUNT", nullable = false)
    public int getHomewrongcount() {
        return homewrongcount;
    }

    public void setHomewrongcount(int homewrongcount) {
        this.homewrongcount = homewrongcount;
    }

    @Basic
    @Column(name = "AWAYRIGHTCOUNT", nullable = false)
    public int getAwayrightcount() {
        return awayrightcount;
    }

    public void setAwayrightcount(int awayrightcount) {
        this.awayrightcount = awayrightcount;
    }

    @Basic
    @Column(name = "AWAYWRONGCOUNT", nullable = false)
    public int getAwaywrongcount() {
        return awaywrongcount;
    }

    public void setAwaywrongcount(int awaywrongcount) {
        this.awaywrongcount = awaywrongcount;
    }

    @Basic
    @Column(name = "WHOWIN", nullable = false)
    public int getWhowin() {
        return whowin;
    }

    public void setWhowin(int whowin) {
        this.whowin = whowin;
    }

    @Basic
    @Column(name = "MATCHSTATUS", nullable = false, length = 1)
    public String getMatchstatus() {
        return matchstatus;
    }

    public void setMatchstatus(String matchstatus) {
        this.matchstatus = matchstatus;
    }

    @Basic
    @Column(name = "MATCHMODEL", nullable = false, length = 45)
    public String getMatchmodel() {
        return matchmodel;
    }

    public void setMatchmodel(String matchmodel) {
        this.matchmodel = matchmodel;
    }

    @Basic
    @Column(name = "MATCHID", nullable = false, length = 45)
    public String getMatchid() {
        return matchid;
    }

    public void setMatchid(String matchid) {
        this.matchid = matchid;
    }

    @Basic
    @Column(name = "HOMEMATCHUSEDTIME", nullable = false)
    public int getHomematchusedtime() {
        return homematchusedtime;
    }

    public void setHomematchusedtime(int homematchusedtime) {
        this.homematchusedtime = homematchusedtime;
    }

    @Basic
    @Column(name = "AWAYMATCHUSEDTIME", nullable = false)
    public int getAwaymatchusedtime() {
        return awaymatchusedtime;
    }

    public void setAwaymatchusedtime(int awaymatchusedtime) {
        this.awaymatchusedtime = awaymatchusedtime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdAncientMatchRdT that = (YdAncientMatchRdT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (matchtime != that.matchtime) return false;
        if (homescore != that.homescore) return false;
        if (awayscore != that.awayscore) return false;
        if (homerightcount != that.homerightcount) return false;
        if (homewrongcount != that.homewrongcount) return false;
        if (awayrightcount != that.awayrightcount) return false;
        if (awaywrongcount != that.awaywrongcount) return false;
        if (whowin != that.whowin) return false;
        if (homematchusedtime != that.homematchusedtime) return false;
        if (awaymatchusedtime != that.awaymatchusedtime) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (homewxopenid != null ? !homewxopenid.equals(that.homewxopenid) : that.homewxopenid != null) return false;
        if (awaywxopenid != null ? !awaywxopenid.equals(that.awaywxopenid) : that.awaywxopenid != null) return false;
        if (homenick != null ? !homenick.equals(that.homenick) : that.homenick != null) return false;
        if (awaynick != null ? !awaynick.equals(that.awaynick) : that.awaynick != null) return false;
        if (matchtitle != null ? !matchtitle.equals(that.matchtitle) : that.matchtitle != null) return false;
        if (matchitemscontent != null ? !matchitemscontent.equals(that.matchitemscontent) : that.matchitemscontent != null)
            return false;
        if (matchstatus != null ? !matchstatus.equals(that.matchstatus) : that.matchstatus != null) return false;
        if (matchmodel != null ? !matchmodel.equals(that.matchmodel) : that.matchmodel != null) return false;
        if (matchid != null ? !matchid.equals(that.matchid) : that.matchid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (homewxopenid != null ? homewxopenid.hashCode() : 0);
        result = 31 * result + (awaywxopenid != null ? awaywxopenid.hashCode() : 0);
        result = 31 * result + (homenick != null ? homenick.hashCode() : 0);
        result = 31 * result + (awaynick != null ? awaynick.hashCode() : 0);
        result = 31 * result + (int) (matchtime ^ (matchtime >>> 32));
        result = 31 * result + (matchtitle != null ? matchtitle.hashCode() : 0);
        result = 31 * result + (matchitemscontent != null ? matchitemscontent.hashCode() : 0);
        result = 31 * result + homescore;
        result = 31 * result + awayscore;
        result = 31 * result + homerightcount;
        result = 31 * result + homewrongcount;
        result = 31 * result + awayrightcount;
        result = 31 * result + awaywrongcount;
        result = 31 * result + whowin;
        result = 31 * result + (matchstatus != null ? matchstatus.hashCode() : 0);
        result = 31 * result + (matchmodel != null ? matchmodel.hashCode() : 0);
        result = 31 * result + (matchid != null ? matchid.hashCode() : 0);
        result = 31 * result + homematchusedtime;
        result = 31 * result + awaymatchusedtime;
        return result;
    }
}
